package com.zy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@Table(
        name = "t_branch"
)
public class Branch {
    @Id
    private Integer brId;
    private String brName;
    private String brAddress;
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date brEntry;
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date brQuit;
    private Integer brStatus;
    @Transient
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date closeDate;
}
